package com.itlong.cloud.POJO.VO.smartcard;

import lombok.Data;

/**
* <desc>
*    与一卡通同步业务数据对象.
* </desc>
*
* @createDate 2017-12-15
*/
@Data
public class SmartCardSyncDataVO {

    private String version;//同步命令版本：1.0
    private String projectId;//项目编号：如 12345678
    private String serialNumber;//同步命令流水号，由一卡通提供，处理成功后会原路返回：
    private Object data;//数据内容
    private Object extra;//其他额外信息

    public SmartCardSyncDataVO(){
        this.version = "1.0";
    }

    public SmartCardSyncDataVO(String projectId, String serialNumber){
        this();
        this.projectId = projectId;
        this.serialNumber = serialNumber;
    }

    public SmartCardSyncDataVO(String projectId, String serialNumber, Object data){
        this(projectId,serialNumber);
        this.data = data;
    }

    public SmartCardSyncDataVO(String projectId, String serialNumber, Object data, Object extra){
        this(projectId,serialNumber,data);
        this.extra = extra;
    }
}
